<template>
  <div id="app">
    <div class="container">
      <router-link to="/">
      <el-button type="success" icon="el-icon-check" circle></el-button>
      </router-link>
      <br><br>
      <div class="row">
        <div class="col">

          <div class="loan-section card">
            <h3>借贷 <span class="more-dots">&hellip;</span></h3>
            <p class="text-bg-green">您有融资选择，多达</p>
            <div class="amount">
              <span>¥5,162,000.00</span>
              <p>在下一页查看详情</p>
            </div>
            <div class="btn-wrapper">
              <button class="btn"><a>查看详情</a></button>
            </div>
          </div>

          <div class="product-recommendation-section card">
            <h3>新选品推荐 <span class="more-dots">&hellip;</span></h3>
            <p class="text-bg-green">开始销售高需求选品</p>
            <div class="product-info">
              <table>
                <tr>
                  <td class="highlight-number">227</td>
                  <td style="font-size: 13px">为您精挑细选的高需求推荐商品</td>
                  <br><br>
                </tr>
                <tr>
                  <td class="highlight-number">30</td>
                  <td style="font-size: 13px">根据最受买家喜好的几大功能精选出的分类</td>
                </tr>
              </table>
            </div>
            <div class="btn-wrapper">
              <button class="btn"><a>查看推荐</a></button>
            </div>
          </div>

        </div>

        <div class="col2">

          <div class="amazon-business-section card">
            <h3>亚马逊企业购 <span class="more-dots">&hellip;</span></h3>
            <p class="text-bg-green">为您的公司购买商品时，享受节省高达10%的企业专享价。</p>
            <div class="logo_one"></div>
            <div class="btn-wrapper">
              <button class="btn"><a>创建免费账户</a></button>
            </div>
          </div>

          <div class="global-demand-section card">
            <h3>全球商品需求 <span class="more-dots">&hellip;</span></h3>
            <p class="text-bg-green">您的美国目录在其他国家/地区有很高的需求</p>
            <div class="product-info">
              <table>
                <tr>
                  <td class="highlight-number">49</td>
                  <td style="font-size: 13px">美国目录中具有全球需求的商品</td>
                </tr>
                <tr>
                  <td class="highlight-number">4</td>
                  <td style="font-size: 13px">要开始销售商品的国际商城</td>
                </tr>
              </table>
            </div>
            <div class="btn-wrapper">
              <button class="btn"><a>在全球范围内拓展商品市场</a></button>
            </div>
          </div>

        </div>
      </div>
    </div>
  </div>
</template>

<style scoped>
/* 全局样式 */
body {
  font-family: Arial, sans-serif;
  padding: 0;
  background-color: #f4f4f4;
  box-sizing: border-box;
}
.container {
  max-width: 1000px;
  margin-left: 350px;
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 0;
  box-sizing: border-box;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.col {
  flex: 1;
  //min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.col2 {
  flex: 1;
//min-width: 300px;
  margin-left: -230px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 卡片通用样式 */
.card {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  min-height: 300px; /* 设置最小高度 */
  width: 50%;
  margin-bottom: 20px;
}
.card:last-child {
  margin-bottom: 0;
}

/* 卡片底部边框 */
.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 0 0 5px 5px;
}

/* 不同卡片的底部边框颜色 */
.loan-section::after {
  background-color: #ff9900;
}
.product-recommendation-section::after {
  background-color: #00a8e1;
}
.amazon-business-section::after {
  background-color: #001528;
}
.global-demand-section::after {
  background-color: #001528;
}

/* 卡片内容样式 */
.card h3 {
  margin: 0 0 15px 0;
  font-size: 20px;
  color: #333;
  position: relative;
}
.text-bg-green {
  font-size: 13px;
  background-color: rgba(79, 155, 187, 0.65);
  padding: 5px 10px;
  border-radius: 3px;
  margin: 10px 0;
  display: inline-block;
}
/* 金额区域 */
.amount {
  margin: 15px 0;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.amount span {
  font-size: 28px;
  font-weight: bold;
  color: #333;
}
.amount p {
  margin: 5px 0 0 0;
  color: #666;
}

/* 产品信息表格 */
.product-info {
  margin: 15px 0;
  flex-grow: 1;
}
.product-info table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #e0e0e0; /* 添加上方横线 */
}
.product-info table tr {
  border-bottom: 1px solid #eee;
}
.product-info table tr:last-child {
  border-bottom: none;
}
.product-info table td {
  padding: 10px 0;
  vertical-align: middle;
}
.highlight-number {
  font-size: 25px;
  font-weight: bold;
  color: #333;
  width: 50px;
  position: relative; /* 为竖线定位做准备 */
}

/* 添加数字右侧的竖线 */
.highlight-number::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 180%; /* 竖线高度为数字高度的60% */
  width: 1px;
  background-color: #e0e0e0;
}

/* 按钮容器 */
.btn-wrapper {
  //margin-top: auto;
  padding-top: 15px;
  text-align: center;
}
. btn-wrapper1 {
  margin-top: auto;
  padding-top: 15px;
  text-align: center;
}
.btn {
  background-color: #008CBA;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}
.btn:hover {
  background-color: #00658e;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 右上角3个点标识样式 */
.more-dots {
  float: right;
  cursor: pointer;
}

/* 图片样式 */
.logo {
  background-size: 1000px;
  width: 100%;
  height: auto;
  margin: 15px 0;
  max-height: 80px;
  object-fit: contain;
}
.logo_one {
  height: 150px;
  background-image: url("./123.jpeg");
  background-size: 300px;
}
</style>
<script setup>
</script>
